package com.wyzz.hr.vo;

import java.util.*;

public class APM {

	public APM(int inputApm, String inputName) {
		apm = inputApm;
		name = inputName;
	}

	public int getApm() {
		return apm;
	}

	public void setApm(int apm) {
		this.apm = apm;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static String getDescription(int apm) {
		if (apm == 0)
			return "\u4E0A\u5348";
		if (apm == 1)
			return "\u4E0B\u5348";
		else
			return "Error!";
	}

	public static String getDescription(Date time) {
		Calendar calendar = Calendar.getInstance();
		calendar.setTime(time);
		if (calendar.get(9) == 0)
			return "\u4E0A\u5348";
		else
			return "\u4E0B\u5348";
	}

	public static List getAPMList() {
		List result = new ArrayList();
		result.add(new APM(0, "\u4E0A\u5348"));
		result.add(new APM(1, "\u4E0B\u5348"));
		return result;
	}

	public static final int APM_AM = 0;
	public static final int APM_PM = 1;
	public static final String APM_AM_DESCRIPTION = "\u4E0A\u5348";
	public static final String APM_PM_DESCRIPTION = "\u4E0B\u5348";
	public static final String APM_ERROR_DESCRIPTION = "Error!";
	private int apm;
	private String name;
}
